package com.cxw.healthserver.constant

/**
 * @createTime 2024/6/23 8:33
 * @author 崔兴旺
 * @description
 */
class Constants {
    companion object {
        const val produces = "application/json;charset=UTF-8"
        const val TOKEN_MISSING = 1000      //缺少token
        const val TOKEN_INVALID = 1001      //无效token
        const val TOKEN_EXPIRED = 1002      //token过期
    }

    enum class ErrorCode(val message: String, val code: String) {
        TOKEN_MISSING("缺少token", "1000"),
        TOKEN_INVALID("无效token", "1001"),
        TOKEN_EXPIRED("token过期", "1002")
    }

    class DiseaseConstants {
        companion object {
            const val CODE_HYPERTENSION = "107"     //高血压
            const val CODE_DIABETES = "108"         //糖尿病
            const val CODE_TUBERCULOSIS = "110"     //肺结核
            const val CODE_MENTAL_DISORDER = "109"  //严重精神障碍
        }
    }
}